package com.hualude.roadsign.model;

import javax.persistence.*;

/**
 * Created by pjn on 2017/8/15.
 */
@Entity
@Table(name = "tb_guardrail_fault", schema = "hualude_db", catalog = "")
public class GuardrailFaultEntity {
    private int guardrailFaultId;
    private Integer guardrailId;
    private Integer guardrailCheckerId;
    private String guardrailCheckTime;
    private Integer guardrailCheck;
    private Integer guardrailMainCheckerId;
    private String guardrailMainCheckTime;
    private Integer guardrailMainCheck;
    private String guardrailFeedback;
    private Double guardrailMoney;
    private Integer guardrailOrgId;
    private Integer guardrailMainOrgId;
    private Integer guardrailMaintainerId;
    private String guardrailMaintenancePhoto;
    private String guardrailMaintenanceContent;
    private String guardrailMaintenanceExplain;
    private Integer guardrailMaintenanceStatus;
    private String guardrailMaintenanceTime;
    private Integer guardrailFaultLevel;
    private String guardrailFaultPhoto;
    private Integer guardrailFaultType;
    private String guardrailFaultReason;
    private Integer guardrailFaultCreatorId;
    private String guardrailFaultTime;

    @Id
    @Column(name = "GuardrailFaultId")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getGuardrailFaultId() {
        return guardrailFaultId;
    }

    public void setGuardrailFaultId(int guardrailFaultId) {
        this.guardrailFaultId = guardrailFaultId;
    }

    @Basic
    @Column(name = "GuardrailId")
    public Integer getGuardrailId() {
        return guardrailId;
    }

    public void setGuardrailId(Integer guardrailId) {
        this.guardrailId = guardrailId;
    }

    @Basic
    @Column(name = "GuardrailCheckerId")
    public Integer getGuardrailCheckerId() {
        return guardrailCheckerId;
    }

    public void setGuardrailCheckerId(Integer guardrailCheckerId) {
        this.guardrailCheckerId = guardrailCheckerId;
    }

    @Basic
    @Column(name = "GuardrailCheckTime")
    public String getGuardrailCheckTime() {
        return guardrailCheckTime;
    }

    public void setGuardrailCheckTime(String guardrailCheckTime) {
        this.guardrailCheckTime = guardrailCheckTime;
    }

    @Basic
    @Column(name = "GuardrailCheck")
    public Integer getGuardrailCheck() {
        return guardrailCheck;
    }

    public void setGuardrailCheck(Integer guardrailCheck) {
        this.guardrailCheck = guardrailCheck;
    }

    @Basic
    @Column(name = "GuardrailMainCheckerId")
    public Integer getGuardrailMainCheckerId() {
        return guardrailMainCheckerId;
    }

    public void setGuardrailMainCheckerId(Integer guardrailMainCheckerId) {
        this.guardrailMainCheckerId = guardrailMainCheckerId;
    }

    @Basic
    @Column(name = "GuardrailMainCheckTime")
    public String getGuardrailMainCheckTime() {
        return guardrailMainCheckTime;
    }

    public void setGuardrailMainCheckTime(String guardrailMainCheckTime) {
        this.guardrailMainCheckTime = guardrailMainCheckTime;
    }

    @Basic
    @Column(name = "GuardrailMainCheck")
    public Integer getGuardrailMainCheck() {
        return guardrailMainCheck;
    }

    public void setGuardrailMainCheck(Integer guardrailMainCheck) {
        this.guardrailMainCheck = guardrailMainCheck;
    }

    @Basic
    @Column(name = "GuardrailFeedback")
    public String getGuardrailFeedback() {
        return guardrailFeedback;
    }

    public void setGuardrailFeedback(String guardrailFeedback) {
        this.guardrailFeedback = guardrailFeedback;
    }

    @Basic
    @Column(name = "GuardrailMoney")
    public Double getGuardrailMoney() {
        return guardrailMoney;
    }

    public void setGuardrailMoney(Double guardrailMoney) {
        this.guardrailMoney = guardrailMoney;
    }

    @Basic
    @Column(name = "GuardrailOrgId")
    public Integer getGuardrailOrgId() {
        return guardrailOrgId;
    }

    public void setGuardrailOrgId(Integer guardrailOrgId) {
        this.guardrailOrgId = guardrailOrgId;
    }

    @Basic
    @Column(name = "GuardrailMainOrgId")
    public Integer getGuardrailMainOrgId() {
        return guardrailMainOrgId;
    }

    public void setGuardrailMainOrgId(Integer guardrailMainOrgId) {
        this.guardrailMainOrgId = guardrailMainOrgId;
    }

    @Basic
    @Column(name = "GuardrailMaintainerId")
    public Integer getGuardrailMaintainerId() {
        return guardrailMaintainerId;
    }

    public void setGuardrailMaintainerId(Integer guardrailMaintainerId) {
        this.guardrailMaintainerId = guardrailMaintainerId;
    }

    @Basic
    @Column(name = "GuardrailMaintenancePhoto")
    public String getGuardrailMaintenancePhoto() {
        return guardrailMaintenancePhoto;
    }

    public void setGuardrailMaintenancePhoto(String guardrailMaintenancePhoto) {
        this.guardrailMaintenancePhoto = guardrailMaintenancePhoto;
    }

    @Basic
    @Column(name = "GuardrailMaintenanceContent")
    public String getGuardrailMaintenanceContent() {
        return guardrailMaintenanceContent;
    }

    public void setGuardrailMaintenanceContent(String guardrailMaintenanceContent) {
        this.guardrailMaintenanceContent = guardrailMaintenanceContent;
    }

    @Basic
    @Column(name = "GuardrailMaintenanceExplain")
    public String getGuardrailMaintenanceExplain() {
        return guardrailMaintenanceExplain;
    }

    public void setGuardrailMaintenanceExplain(String guardrailMaintenanceExplain) {
        this.guardrailMaintenanceExplain = guardrailMaintenanceExplain;
    }

    @Basic
    @Column(name = "GuardrailMaintenanceStatus")
    public Integer getGuardrailMaintenanceStatus() {
        return guardrailMaintenanceStatus;
    }

    public void setGuardrailMaintenanceStatus(Integer guardrailMaintenanceStatus) {
        this.guardrailMaintenanceStatus = guardrailMaintenanceStatus;
    }

    @Basic
    @Column(name = "GuardrailMaintenanceTime")
    public String getGuardrailMaintenanceTime() {
        return guardrailMaintenanceTime;
    }

    public void setGuardrailMaintenanceTime(String guardrailMaintenanceTime) {
        this.guardrailMaintenanceTime = guardrailMaintenanceTime;
    }

    @Basic
    @Column(name = "GuardrailFaultLevel")
    public Integer getGuardrailFaultLevel() {
        return guardrailFaultLevel;
    }

    public void setGuardrailFaultLevel(Integer guardrailFaultLevel) {
        this.guardrailFaultLevel = guardrailFaultLevel;
    }

    @Basic
    @Column(name = "GuardrailFaultPhoto")
    public String getGuardrailFaultPhoto() {
        return guardrailFaultPhoto;
    }

    public void setGuardrailFaultPhoto(String guardrailFaultPhoto) {
        this.guardrailFaultPhoto = guardrailFaultPhoto;
    }

    @Basic
    @Column(name = "GuardrailFaultType")
    public Integer getGuardrailFaultType() {
        return guardrailFaultType;
    }

    public void setGuardrailFaultType(Integer guardrailFaultType) {
        this.guardrailFaultType = guardrailFaultType;
    }

    @Basic
    @Column(name = "GuardrailFaultReason")
    public String getGuardrailFaultReason() {
        return guardrailFaultReason;
    }

    public void setGuardrailFaultReason(String guardrailFaultReason) {
        this.guardrailFaultReason = guardrailFaultReason;
    }

    @Basic
    @Column(name = "GuardrailFaultCreatorId")
    public Integer getGuardrailFaultCreatorId() {
        return guardrailFaultCreatorId;
    }

    public void setGuardrailFaultCreatorId(Integer guardrailFaultCreatorId) {
        this.guardrailFaultCreatorId = guardrailFaultCreatorId;
    }

    @Basic
    @Column(name = "GuardrailFaultTime")
    public String getGuardrailFaultTime() {
        return guardrailFaultTime;
    }

    public void setGuardrailFaultTime(String guardrailFaultTime) {
        this.guardrailFaultTime = guardrailFaultTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        GuardrailFaultEntity that = (GuardrailFaultEntity) o;

        if (guardrailFaultId != that.guardrailFaultId) return false;
        if (guardrailId != null ? !guardrailId.equals(that.guardrailId) : that.guardrailId != null) return false;
        if (guardrailCheckerId != null ? !guardrailCheckerId.equals(that.guardrailCheckerId) : that.guardrailCheckerId != null)
            return false;
        if (guardrailCheckTime != null ? !guardrailCheckTime.equals(that.guardrailCheckTime) : that.guardrailCheckTime != null)
            return false;
        if (guardrailCheck != null ? !guardrailCheck.equals(that.guardrailCheck) : that.guardrailCheck != null)
            return false;
        if (guardrailMainCheckerId != null ? !guardrailMainCheckerId.equals(that.guardrailMainCheckerId) : that.guardrailMainCheckerId != null)
            return false;
        if (guardrailMainCheckTime != null ? !guardrailMainCheckTime.equals(that.guardrailMainCheckTime) : that.guardrailMainCheckTime != null)
            return false;
        if (guardrailMainCheck != null ? !guardrailMainCheck.equals(that.guardrailMainCheck) : that.guardrailMainCheck != null)
            return false;
        if (guardrailFeedback != null ? !guardrailFeedback.equals(that.guardrailFeedback) : that.guardrailFeedback != null)
            return false;
        if (guardrailMoney != null ? !guardrailMoney.equals(that.guardrailMoney) : that.guardrailMoney != null)
            return false;
        if (guardrailOrgId != null ? !guardrailOrgId.equals(that.guardrailOrgId) : that.guardrailOrgId != null)
            return false;
        if (guardrailMainOrgId != null ? !guardrailMainOrgId.equals(that.guardrailMainOrgId) : that.guardrailMainOrgId != null)
            return false;
        if (guardrailMaintainerId != null ? !guardrailMaintainerId.equals(that.guardrailMaintainerId) : that.guardrailMaintainerId != null)
            return false;
        if (guardrailMaintenancePhoto != null ? !guardrailMaintenancePhoto.equals(that.guardrailMaintenancePhoto) : that.guardrailMaintenancePhoto != null)
            return false;
        if (guardrailMaintenanceContent != null ? !guardrailMaintenanceContent.equals(that.guardrailMaintenanceContent) : that.guardrailMaintenanceContent != null)
            return false;
        if (guardrailMaintenanceExplain != null ? !guardrailMaintenanceExplain.equals(that.guardrailMaintenanceExplain) : that.guardrailMaintenanceExplain != null)
            return false;
        if (guardrailMaintenanceStatus != null ? !guardrailMaintenanceStatus.equals(that.guardrailMaintenanceStatus) : that.guardrailMaintenanceStatus != null)
            return false;
        if (guardrailMaintenanceTime != null ? !guardrailMaintenanceTime.equals(that.guardrailMaintenanceTime) : that.guardrailMaintenanceTime != null)
            return false;
        if (guardrailFaultLevel != null ? !guardrailFaultLevel.equals(that.guardrailFaultLevel) : that.guardrailFaultLevel != null)
            return false;
        if (guardrailFaultPhoto != null ? !guardrailFaultPhoto.equals(that.guardrailFaultPhoto) : that.guardrailFaultPhoto != null)
            return false;
        if (guardrailFaultType != null ? !guardrailFaultType.equals(that.guardrailFaultType) : that.guardrailFaultType != null)
            return false;
        if (guardrailFaultReason != null ? !guardrailFaultReason.equals(that.guardrailFaultReason) : that.guardrailFaultReason != null)
            return false;
        if (guardrailFaultCreatorId != null ? !guardrailFaultCreatorId.equals(that.guardrailFaultCreatorId) : that.guardrailFaultCreatorId != null)
            return false;
        if (guardrailFaultTime != null ? !guardrailFaultTime.equals(that.guardrailFaultTime) : that.guardrailFaultTime != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = guardrailFaultId;
        result = 31 * result + (guardrailId != null ? guardrailId.hashCode() : 0);
        result = 31 * result + (guardrailCheckerId != null ? guardrailCheckerId.hashCode() : 0);
        result = 31 * result + (guardrailCheckTime != null ? guardrailCheckTime.hashCode() : 0);
        result = 31 * result + (guardrailCheck != null ? guardrailCheck.hashCode() : 0);
        result = 31 * result + (guardrailMainCheckerId != null ? guardrailMainCheckerId.hashCode() : 0);
        result = 31 * result + (guardrailMainCheckTime != null ? guardrailMainCheckTime.hashCode() : 0);
        result = 31 * result + (guardrailMainCheck != null ? guardrailMainCheck.hashCode() : 0);
        result = 31 * result + (guardrailFeedback != null ? guardrailFeedback.hashCode() : 0);
        result = 31 * result + (guardrailMoney != null ? guardrailMoney.hashCode() : 0);
        result = 31 * result + (guardrailOrgId != null ? guardrailOrgId.hashCode() : 0);
        result = 31 * result + (guardrailMainOrgId != null ? guardrailMainOrgId.hashCode() : 0);
        result = 31 * result + (guardrailMaintainerId != null ? guardrailMaintainerId.hashCode() : 0);
        result = 31 * result + (guardrailMaintenancePhoto != null ? guardrailMaintenancePhoto.hashCode() : 0);
        result = 31 * result + (guardrailMaintenanceContent != null ? guardrailMaintenanceContent.hashCode() : 0);
        result = 31 * result + (guardrailMaintenanceExplain != null ? guardrailMaintenanceExplain.hashCode() : 0);
        result = 31 * result + (guardrailMaintenanceStatus != null ? guardrailMaintenanceStatus.hashCode() : 0);
        result = 31 * result + (guardrailMaintenanceTime != null ? guardrailMaintenanceTime.hashCode() : 0);
        result = 31 * result + (guardrailFaultLevel != null ? guardrailFaultLevel.hashCode() : 0);
        result = 31 * result + (guardrailFaultPhoto != null ? guardrailFaultPhoto.hashCode() : 0);
        result = 31 * result + (guardrailFaultType != null ? guardrailFaultType.hashCode() : 0);
        result = 31 * result + (guardrailFaultReason != null ? guardrailFaultReason.hashCode() : 0);
        result = 31 * result + (guardrailFaultCreatorId != null ? guardrailFaultCreatorId.hashCode() : 0);
        result = 31 * result + (guardrailFaultTime != null ? guardrailFaultTime.hashCode() : 0);
        return result;
    }
}
